package io.finer.erp.jeecg.stock.entity;

import java.io.Serializable;

import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description: 代加工单
 * @Author: jeecg-boot
 * @Date:   2021-04-19
 * @Version: V1.0
 */
@ApiModel(value="stk_processing_order对象", description="代加工单")
@Data
@TableName("stk_processing_order")
public class StkProcessingOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**编码*/
	@Excel(name = "编码", width = 15)
    @ApiModelProperty(value = "编码")
    private java.lang.String orderNo;
	/**制单人*/
	@Excel(name = "制单人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "制单人")
    private java.lang.String orderProducer;
	/**代加工状态*/
	@Excel(name = "代加工状态", width = 15, dicCode = "processing_status")
    @Dict(dicCode = "processing_status")
    @ApiModelProperty(value = "代加工状态")
    private java.lang.String orderStatus;
	/**供应商*/
	@Excel(name = "供应商", width = 15, dictTable = "bas_supplier", dicText = "name", dicCode = "id")
    @Dict(dictTable = "bas_supplier", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "供应商")
    private java.lang.String supplierId;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**代加工总价*/
	@Excel(name = "代加工总价", width = 15)
    @ApiModelProperty(value = "代加工总价")
    private java.math.BigDecimal totalAmount;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private java.lang.String orderPhone;
	/**地址*/
	@Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private java.lang.String processAddress;
	/**是否已生成应付*/
	@ApiModelProperty(value = "是否已生成应付")
	@Dict(dicCode = "yn")
	private java.lang.Integer isPro;
	/**客户*/
	@ApiModelProperty(value = "客户")
	@Dict(dictTable = "bas_customer", dicText = "name", dicCode = "id")
	private String customerId;
	@TableField(exist = false)
	private String customerName;
	/**是否开票*/
	@ApiModelProperty(value = "是否开票")
	@Dict(dicCode = "yn")
	private String isInvoice;
	/**是否包含运费*/
	@ApiModelProperty(value = "是否包含运费")
	@Dict(dicCode = "yn")
	private String isFreight;
}
